/*
* @Author: MR.Wang
* @Date:   2017-06-03 12:18:39
* @Last Modified by:   MR.Wang
* @Last Modified time: 2017-06-03 12:35:16
*/

'use strict'
import Vuex from 'vuex'
import actions from './actions'
import getters from './getters'
import mutations from './mutations'
import createLogger from 'vuex/dist/logger'

const debug = process.env.NODE_ENV !== 'production'

const createStore = () => {
  return new Vuex.Store({
    state:{
    	user: null,
        sessionid: null,
    	authUser: null
    },
    getters,
    actions,
    // strict: debug,
    // plugins: debug ? [createLogger()] : [],
    mutations
  })
}



export default createStore
